#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/5/12 上午9:01
# @Author  : zhangzhen
# @Site    : 
# @File    : plot.py
# @Software: PyCharm

import numpy as np
from com.pos.pos import  plot
w = [20, 40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240, 260, 280, 300, 320, 340, 360, 380, 400, 420, 440, 460, 480]
ap = [ 0.40797832,  0.37365445,  0.38607631,  0.39309181,  0.39382504,  0.41122001,
  0.40270915,  0.41407904,  0.41162407,  0.42851701,  0.41484124,  0.42422471,
  0.40881661,  0.42702138,  0.41108586,  0.42065187,  0.41405439,  0.41265904,
  0.44064705,  0.43057823,  0.42628809,  0.41558154,  0.43307516,  0.43836802]

ar = [0.19942857,  0.21442857,  0.23114286,  0.23514286,  0.24442857,  0.263,0.25957143,  0.26485714,  0.27628571,  0.29128571,  0.28457143,  0.29442857,
       0.29228571,  0.30042857,  0.30671429, 0.307,0.30885714,  0.30485714,0.32628571,  0.32342857,  0.33014286,  0.336, 0.33942857,  0.34328571]

ia = [0.19551821,  0.21022409,  0.22661064,  0.23053221,  0.23963585,  0.25784314,
  0.25448179,  0.25966387,  0.27086835,  0.28557423,  0.2789916,   0.28865546,
  0.28655462,  0.29453782,  0.30070028,  0.30098039,  0.30280112, 0.29887955,
  0.31988796,  0.31708683,  0.32366947,  0.32941176,  0.33277311,  0.33655462]

ap = np.array(ap)
ar = np.array(ar)
ia = np.array(ia)

print len(ap),len(ar),len(ia)

plot(ap,ar,ia,ia,w)